 <template>
  <el-button
    @click="onBtnItemClick"
    :type="btnItemType ? btnItemType : 'primary'"
    :plain="btnItemType=='danger'?true:btnItemPlain ? true : false"
    :size="btnItemSize ? btnItemSize : 'small'"
    :disabled="btnDisabled?btnDisabled:false"
    >{{ btnItemLabel }}</el-button
  >
</template>

<script>
export default {
  name:'button_item',
  data() {
    return {};
  },
  props: {
    btnItemType: String, //类型
    btnItemPlain: Boolean, //是否按文本显示
    btnItemLabel: String, //按钮显示内容
    btnItemSize: String, //按钮的大小
    btnDisabled:Boolean,//按钮是否可以点击
  },
  methods: {
    onBtnItemClick() {
      this.$emit("onBtnItemClick");
    },
  },
};
</script>

<style>
</style>